#pragma once

#include <string>

namespace lib::lrc
{
	class line
	{
	public:
		explicit line(const std::string &line);

		/**
		 * Timestamp in milliseconds
		 */
		long timestamp;

		/**
		 * Lyrics text
		 */
		std::string text;

		/**
		 * Raw line data
		 */
		std::string data;

	private:
		static auto parse_timestamp(const std::string &timestamp) -> long;
	};
}
